/**
 * @author aidenquan
 *         Created by junlintianxia on 2021/07/18.
 */
fun main(arg: Array<String>) {
    inlineFunc("inlineFunc") {
        println("HaHa")
    }
    val call : () -> Unit = { println("HiHi") }
    inlineFunc("inlineFunc1", call)
}

inline fun inlineFunc(prefix : String, action : () -> Unit) {
    println("call before $prefix")
    action()
    println("call after $prefix")
}